package homework;

public class tiaozhan2 {
	public static void main(String[] args) {
		int i, j, k, m;
		for (i = 1; i <= 8; i++) { 
			for (j = 1; j <= 8 - i; j++) {
				System.out.print(" "); 
			}
			for (k = 1; k <= i; k++) { 
				System.out.print(k);
			}
			for (m = i - 1; m > 0; m--) { 
				System.out.print(m);
			}
			System.out.println(); 
		}
	}
}